//
//  TestRetainCountVC.m
//  技术点总结
//
//  Created by tianlong on 2018/6/12.
//  Copyright © 2018年 tianlong. All rights reserved.
//

#import "TestRetainCountVC.h"

@interface TestRetainCountVC ()

@end

@implementation TestRetainCountVC

- (void)viewDidLoad {
    [super viewDidLoad];
    
    NSArray *array1 = @[@1];
    NSLog(@"retainCount:%ld", [array1 retainCount]);
    
    NSArray *array2 = [array1 copy];
    
    NSLog(@"\narray1 = %p \narray2 = %p", array1,array2);
    NSLog(@"retainCount:%ld", [array1 retainCount]);
}
@end
